#ifndef PINYIN_CONVER_H
#define PINYIN_CONVER_H

#include <string>
#include <Util/StringUtil.h>

#define PV_SIZE 396

class pinyin
{
public:
	pinyin();
	~pinyin();
	void first_letter(int code, std::string& strletter);
	void get_first_letter(std::string strname, std::string& strfirstletter);
	bool find_str(std::string str, std::string find);
	int	china_code_value(const std::string&);
	std::string	code_to_py(int code);
	std::string	china_to_py(const std::string& str);
protected:
private:
	static const char* pinyin_[405];
	static int pv_[396];
};

#endif